package com.whosly.action.log.api;

import com.whosly.action.log.data.ActionData;
import org.springframework.scheduling.annotation.Async;

/**
 * 用户服务
 */
public interface IActionService {
    /**
     * 得到登录用户 userId
     *
     * @return
     */
    String getUserId();

    /**
     * 数据存储, 异步
     */
    @Async
    void storage(ActionData actionData);

}
